package days4.middle.title172;

/**
 * @Author fengzihao
 * @Date 2024-04-18 20:54
 */
class Solution {
    public int trailingZeroes(int n) {
        int count= 0;
        if(n==0)
            return 0;
        for (int i = n; i > 0; i--) {
            int num = i;
            while (num%5==0){
                num/=5;
                count++;
            }
        }
        return count;
    }
}
